function [ outputBalance ] = outputSistemas( vectorsistemas,tabladatos )
%OUTPUTSISTEMAS Summary of this function goes here
%   Detailed explanation goes here
%vectorsistemas=gpuArray(vectorsistemas);
vectorsistemas=vectorsistemas(1,vectorsistemas(1,:)~=0);
sistemasCombinar=length(vectorsistemas);
if sistemasCombinar ==0
    outputBalance=zeros(length(tabladatos(:,1)),1);
else    
    columnas=tabladatos(:,vectorsistemas(1:sistemasCombinar));
    columnas = columnas';
    outputBalance=sum(columnas,1);
    outputBalance=outputBalance';

end

end
    


